import {connect} from 'react-redux'
import Count from '../../components/count'
import {increment,decrement,asyncincrement} from '../../redux/action.js'
const mapState=(state)=>{
	return {
		num:state
	}
}
const mapDispatch=(dispatch)=>{
	return {
		increment:(data)=>{
			dispatch(increment(data))
		},
		decrement:(data)=>{
			dispatch(decrement(data))
		},
		asyncincrement:(data,time)=>{
			dispatch(asyncincrement(data,time))
		}
	}
}

export default connect(mapState,mapDispatch)(Count)
